#ifndef NETWORK_H
#define NETWORK_H



#include <QTcpSocket>
#include <QObject>



class Client: public QTcpSocket
{

	Q_OBJECT

public:

	Client( QObject* parent = 0 );
	~Client();


private:

	quint16 block_size;

	QString* read_string();


private slots:

	void read_block();

};



class network_client
{

public:
	
	static network_client* get_instance();

	Client* client;

	int x;


private:

	network_client( int _x): x( _x ) {};
	network_client( const network_client& );
	network_client& operator=( const network_client& x );

};



#endif